package org.lionsoul.ip2region2;

public class DbConfig
{
  private int totalHeaderSize;
  private int indexBlockSize;

  public DbConfig(int paramInt)
    throws DbMakerConfigException
  {
    if (paramInt % 8 != 0)
      throw new DbMakerConfigException("totalHeaderSize must be times of 8");
    this.totalHeaderSize = paramInt;
    this.indexBlockSize = 8192;
  }

  public DbConfig()
    throws DbMakerConfigException
  {
    this(16384);
  }

  public int getTotalHeaderSize()
  {
    return this.totalHeaderSize;
  }

  public DbConfig setTotalHeaderSize(int paramInt)
  {
    this.totalHeaderSize = paramInt;
    return this;
  }

  public int getIndexBlockSize()
  {
    return this.indexBlockSize;
  }

  public DbConfig setIndexBlockSize(int paramInt)
  {
    this.indexBlockSize = paramInt;
    return this;
  }
}

/* Location:           C:\Users\zhangliang.sm\Desktop\dbMaker-1.2.2.jar
 * Qualified Name:     org.lionsoul.ip2region.DbConfig
 * JD-Core Version:    0.6.2
 */